<%@page import="br.com.skpharma.vo.*,br.com.skpharma.dao.*,java.util.*,java.text.SimpleDateFormat" contentType="text/html; charset=ISO-8859-1"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.style1 {
	font-size: 12px;
	font-family: Verdana, Arial, Helvetica, sans-serif;
}
.style3 {font-size: 12px; font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold; }
-->
</style></head>

<%

ArrayList lista3 = (ArrayList)session.getAttribute("listaItens");
float pr = 0;
int qt = 0;
for (int i = 0; i<lista3.size(); i++){
	pr = pr + (((ItemVendaVO)lista3.get(i)).getItemVO().getProdutoVO().getPreco() * ((ItemVendaVO)lista3.get(i)).getQtde());
	qt = qt + ((ItemVendaVO)lista3.get(i)).getQtde();
}
%>

<body>
<table width="202" height="198" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td valign="top"><table width="100%" border="0" cellpadding="5" cellspacing="0" bordercolor="#FFFFFF" bgcolor="#FFFFFF">
      <tr>
        <td bgcolor="#FFFFFF"><img src="images/carrinho.jpg" width="64" height="59" /></td>
        </tr>
    </table>
      <span class="style1"><strong>Valor Total: </strong> R$
<input style="font-size:12px" type="text" name="preco" readonly="true" size="9" value="<%=Float.toString(pr)%>" />
      </span><br />
      <br />
      <span class="style3">Qtde. de Produtos: <span class="style1">
      <input style="font-size:12px" type="text" name="preco2" readonly="true" size="4" value="<%=Integer.toString(qt)%>" />
      </span></span></td>
  </tr>
  <tr>
    <td valign="top">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top">&nbsp;</td>
  </tr>
</table>
</body>
</html>
